
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Grebok.Common;
using Grebok.Common.Configuration;

namespace EVegetable.Persistence.Test.DataManager
{
    public class TIni_EmpBasicInfoManager : BaseManager
    {
        #region private field

        private static TIni_EmpBasicInfoManager manager;
        #endregion

        #region Properties
        
        public String EmpID
        {
            get { return GetConfig<String>("EmpID"); }
            set { SetConfig<String>("EmpID", value); }
        }
        
        public String EmpCode
        {
            get { return GetConfig<String>("EmpCode"); }
            set { SetConfig<String>("EmpCode", value); }
        }
        
        public String EmpName
        {
            get { return GetConfig<String>("EmpName"); }
            set { SetConfig<String>("EmpName", value); }
        }
        
        public String WorkingDept
        {
            get { return GetConfig<String>("WorkingDept"); }
            set { SetConfig<String>("WorkingDept", value); }
        }
        
        public String IDNumber
        {
            get { return GetConfig<String>("IDNumber"); }
            set { SetConfig<String>("IDNumber", value); }
        }
        
        public String Sex
        {
            get { return GetConfig<String>("Sex"); }
            set { SetConfig<String>("Sex", value); }
        }
        
        public String Birthday
        {
            get { return GetConfig<String>("Birthday"); }
            set { SetConfig<String>("Birthday", value); }
        }
        
        public String Age
        {
            get { return GetConfig<String>("Age"); }
            set { SetConfig<String>("Age", value); }
        }
        
        public String MaritalStatus
        {
            get { return GetConfig<String>("MaritalStatus"); }
            set { SetConfig<String>("MaritalStatus", value); }
        }
        
        public String CultureLevel
        {
            get { return GetConfig<String>("CultureLevel"); }
            set { SetConfig<String>("CultureLevel", value); }
        }
        
        public String Major
        {
            get { return GetConfig<String>("Major"); }
            set { SetConfig<String>("Major", value); }
        }
        
        public String Degree
        {
            get { return GetConfig<String>("Degree"); }
            set { SetConfig<String>("Degree", value); }
        }
        
        public String Tel
        {
            get { return GetConfig<String>("Tel"); }
            set { SetConfig<String>("Tel", value); }
        }
        
        public String HomeAddress
        {
            get { return GetConfig<String>("HomeAddress"); }
            set { SetConfig<String>("HomeAddress", value); }
        }
        
        public String eMail
        {
            get { return GetConfig<String>("eMail"); }
            set { SetConfig<String>("eMail", value); }
        }
        
        public String StaffType
        {
            get { return GetConfig<String>("StaffType"); }
            set { SetConfig<String>("StaffType", value); }
        }
        
        public String Seniority
        {
            get { return GetConfig<String>("Seniority"); }
            set { SetConfig<String>("Seniority", value); }
        }
        

        #endregion

        #region Constructor

        /// <summary>
        /// TIni_EmpBasicInfoManager
        /// </summary>
        private TIni_EmpBasicInfoManager()
        {
            IApplicationConfiguration configuration = ApplicationConfigurationFactor.CreateApplicationConfiguration();
            appPropertiese = new ApplicationProperties(configuration[PropertiesConst.TINI_EMPBASICINFO_PROPERTIES_FILE_NAME_KEY],
                configuration[PropertiesConst.TINI_EMPBASICINFO_PROPERTIES_SECTION_NAME_KEY]);

            appPropertieseValues = new Dictionary<string, object>();
        }
        #endregion

        #region TIni_EmpBasicInfoManager Instance

        /// <summary>
        /// TIni_EmpBasicInfoManager's Instance
        /// </summary>
        public static TIni_EmpBasicInfoManager Instance
        {
            get
            {
                if (manager == null)
                {
                    manager = new TIni_EmpBasicInfoManager();
                }
                return manager;
            }
        }
        #endregion

    }
}
